﻿using Microsoft.EntityFrameworkCore;
using RBAC.Domain.RbacEntity;

namespace RBAC.Infrasturcture
{
    public class DBcontext : DbContext
    {
        public DBcontext(DbContextOptions options) : base(options)
        {
        }

        public DbSet<User> users { get; set; }
        public DbSet<Role> roles { get; set; }
        public DbSet<UserRole> userRoles { get; set; }
        public DbSet<Permission> permissions { get; set; }
        public DbSet<Function> functions { get; set; }
        public DbSet<UserFunction> userFunctions { get; set; }
        public DbSet<RolePermission> rolePermissions { get; set; }
    }
}
